package com.yang.scanBean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class X {
	@Autowired
	Y y;

	public Y getY() {
		return y;
	}

	public X() {
		System.out.println("我是X的默认构造方法, X对象被创建了");
	}
}